package com.cli.springbootstaterdemo;

import com.cli.springbootstaterdemo.service.SpiTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootStaterDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootStaterDemoApplication.class, args);

        SpiTestService spiTestService = run.getBean(SpiTestService.class);

        spiTestService.spiTest();
    }

}
